﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Web;

namespace Archives
{
    public class GW_ReadMap : EntityTypeConfiguration<GW_Read>
    {
        public GW_ReadMap()
        {
            // Primary Key
            this.HasKey(t => t.Id);
            // Properties
            //主键Id                
            this.Property(t => t.Id)
                .IsRequired()
                .HasMaxLength(36)
                .HasColumnName("Id");
            //名称                
            this.Property(t => t.Name)
                .HasMaxLength(100)
                .HasColumnName("Name");
            //前缀                
            this.Property(t => t.ThePrefix)
                .HasMaxLength(50)
                .HasColumnName("ThePrefix");
            //年份                
            this.Property(t => t.Year)
                .HasColumnName("Year");
            //编号                
            this.Property(t => t.Number)
                .HasColumnName("Number");
            //备注                
            this.Property(t => t.Remark)
                .HasColumnName("Remark");
            // Table & Column Mappings
            this.ToTable("GW_Read");


        }
    }
}